package cc.yugu.yhdw.webserver.persistence.hdw;


import cc.yugu.yhdw.common.domain.hdw.ExchangePacketDayUse;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;
/**
 * 包月订单每日使用次数信息
 *
 * @Date:Created in 2018/6/30 15:41
 * @Author:
 * @Modified By: zjn 2018/6/30 15:41
 */
public interface ExchangePacketDayUseMapper extends MasterMapper {
    /**
    * 根据主键和创建时间查询表hdw_exchange_packet_day_use
    * 
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ExchangePacketDayUse
    * @Author By: zjn 2018/6/30  15:41
    */ 
    ExchangePacketDayUse find(long id);
    /**
    * 插入
    * 
    * @Param: [id, dayUse, createTime]
    * @Return: int
    * @Author By: zjn 2018/6/30  15:41
    */ 
    int insert(@Param("id") String id,@Param("dayUse") int dayUse,@Param("createTime") String createTime);
    /**
    * 根据主键和创建时间更新 使用次数
    * 
    * @Param: [id, dayUse, createTime]
    * @Return: int
    * @Author By: zjn 2018/6/30  15:41
    */ 
    int update(@Param("id") String id,@Param("dayUse") int dayUse,@Param("createTime") String createTime);

}
